﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComputerShopE3.Models.SAN_PHAM_UA_THICH>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>
    <table>
        <tr>
            <th></th>            
            <% ViewData["SanPham"] = null; %>
            <% Html.RenderPartial("ProductListPartialView"); %>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Xóa", "Delete", new { id=item.id })%>
            </td>            
                <% ViewData["SanPham"] = item.SAN_PHAM; %>
                <% Html.RenderPartial("ProductListPartialView"); %>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Tạo mới", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

